home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / GFX.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  48 lines

  1. /*
  2.  * This is the user-visible SGI GFX interface.
  3.  *
  4.  * This must be used verbatim into the GNU libc.  It does not include
  5.  * any kernel-only bits on it.  
  6.  *
  7.  * miguel@nuclecu.unam.mx
  8.  */
  9.  
  10. /* The iocls, yes, they do not make sense, but such is life */
  11. #define GFX_BASE             100
  12. #define GFX_GETNUM_BOARDS    (GFX_BASE + 1)
  13. #define GFX_GETBOARD_INFO    (GFX_BASE + 2)
  14. #define GFX_ATTACH_BOARD     (GFX_BASE + 3)
  15. #define GFX_DETACH_BOARD     (GFX_BASE + 4)
  16. #define GFX_IS_MANAGED       (GFX_BASE + 5)
  17.  
  18. #define GFX_MAPALL           (GFX_BASE + 10)
  19. #define GFX_LABEL            (GFX_BASE + 11)
  20.  
  21. #define GFX_INFO_NAME_SIZE  16
  22. #define GFX_INFO_LABEL_SIZE 16
  23.  
  24. struct gfx_info {
  25.     char name  [GFX_INFO_NAME_SIZE];  /* board name */
  26.     char label [GFX_INFO_LABEL_SIZE]; /* label name */
  27.     unsigned short int xpmax, ypmax;  /* screen resolution */
  28.     unsigned int lenght;              /* size of a complete gfx_info for this board */
  29. };
  30.  
  31. struct gfx_getboardinfo_args {
  32.     unsigned int board;     /* board number.  starting from zero */
  33.     void *buf;              /* pointer to gfx_info */
  34.     unsigned int len;       /* buffer size of buf */
  35. };
  36.  
  37. struct gfx_attach_board_args {
  38.     unsigned int board;    /* board number, starting from zero */
  39.     void        *vaddr;    /* address where the board registers should be mapped */
  40. };
  41.  
  42. #ifdef __KERNEL__
  43. /* umap.c */
  44. extern void remove_mapping (struct task_struct *, unsigned long, unsigned long);
  45. extern void *vmalloc_uncached (unsigned long size);
  46. extern int vmap_page_range (unsigned long from, unsigned long size, unsigned long vaddr);
  47. #endif
  48.